import javax.swing.*;
import java.awt.*;

/**
 * @author 杨宇
 * @date Created on 2016/6/14.
 */
public class E04_Button1 extends JFrame {
    private JButton b1 = new JButton("Button 1"), b2 = new JButton("Button 2");

    public E04_Button1() {
        //setLayout(new FlowLayout());
        add(b1);
        add(b2);
    }

    public static void main(String[] args) {
        SwingConsole.run(new E04_Button1(),200,100);
    }
}
